package com.newtouch.xcd.pms.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.newtouch.xcd.common.constants.BaseDict;
import com.newtouch.xcd.pms.entity.XcdFundOrder;
import com.newtouch.xcd.pms.mapper.XcdFundOrderMapper;
import com.newtouch.xcd.pms.service.XcdFundOrderService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 产品预约表 产品预约表 服务实现类
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-07-09
 */
@Service
@Component
public class XcdFundOrderServiceImpl extends ServiceImpl<XcdFundOrderMapper, XcdFundOrder> implements XcdFundOrderService {

    @Override
    public List<XcdFundOrder> queryByBookStatus(String bookStatus) {
        QueryWrapper<XcdFundOrder> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("book_status", BaseDict.BookStatus.B00.getCode());
        return this.list(queryWrapper);
    }
}
